package amst.system;

public class Packet {

	private double serviceTime;
    private double arrivalTime;
    private double delay;
	
	public Packet(double serv_time)
    {
		this.serviceTime = serv_time;
	}

	public Packet(double serv_time, double arr_time)
    {
		this.serviceTime = serv_time;
        this.arrivalTime = arr_time;
	}
	public double getServiceTime()
    {
		return serviceTime;
	}

    public double getDelay(double time)
    {
    	delay = time-arrivalTime;
    	return delay;
    }

	public double getDelay() {
		return delay;
	}
}
